package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆表 Mapper 接口
 * </p>
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    List<Map<String, Object>> selectActivitys(@Param("startTime") String startTime,
                                              @Param("endTime") String endTime);

    void insertThisActivity(@Param("userId")Long userId,
                            @Param("activityId") Long activityId);

    List<Long> selectActivityId(@Param("userId") Long userId);

    List<Map<String, Object>> selectMyActivitys(@Param("activityIds") List<Long> activityIds);

    List<Map<String, Object>> selectDiscount(@Param("activityIds") List<Long> activityIds);
}
